package cn.javaxc.mvcwork.util.common;
import org.springframework.data.redis.serializer.*;
import org.springframework.data.redis.cache.RedisCacheWriter;
import org.springframework.data.redis.connection.RedisConnectionFactory;
public class SdkUtil 
{ 
    public static <T> RedisSerializationContext.SerializationPair<T> fromSerializer(RedisSerializer<T> serializer){      
      return RedisSerializationContext.SerializationPair.fromSerializer(serializer);
    }
  public static RedisCacheWriter lockingRedisCacheWriter(RedisConnectionFactory connectionFactory)
  {    
    return RedisCacheWriter.lockingRedisCacheWriter(connectionFactory);
  }
};
